import 'package:flutter/material.dart';

class SwiperImagePage extends StatelessWidget {
  final double width;
  final double height;
  final String src;

  const SwiperImagePage({
    super.key,
    this.width = double.infinity,
    this.height = 250,
    required this.src,
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: height,
      width: width,
      child: Image.network(
        src,
        fit: BoxFit.cover,
      ),
    );
  }
}
